package com.itheima;

import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class LogbackTest {

  public static final Logger LOGGER = LoggerFactory.getLogger(LogbackTest.class);

  // 快速入门
  @Test
  public void testQuick() {

    for (int i = 0; i < 100000; i++) {
      System.out.println("-----" + i + "-----");
      // 日志输出
      LOGGER.error(i + "--error");
      LOGGER.warn(i + "--wring");
      LOGGER.info(i + "--info");
      LOGGER.debug(i + "--debug"); // 默认级别
      LOGGER.trace(i + "--trace");
    }
  }
}
